home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************
- *
- * stdmacros.rh
- *
- * This is an #include file for the Rayshade Standard Header
- * Files. It defines the macros for the package.
- *
- * Please do not edit this file, or any of the other files in
- * this package! Make additions to these in your own separate
- * file. If you think you have something that should be added
- * permanently, please send it to Larry Coffin and/or David
- * DeBry (email addresses listed below). If we include it in
- * the next release, we'll put your name in the contributor's
- * list.
- *
- * Contributors (in alphabetical order):
- * Larry Coffin <lcoffin@clciris.chem.umr.edu>
- * David DeBry <ddebry@dsd.es.com>
- */
-
- #ifndef RSHF_MACROS
- #define RSHF_MACROS
-
- #define RSMdull(a,b,c,d) \
- ambient ((a)*(d)) ((b)*(d)) ((c)*(d)) \
- diffuse (a) (b) (c)
-
- #define RSMshiny(a,b,c,d,e) \
- ambient (a*d) (b*d) (c*d) \
- diffuse (a) (b) (c) \
- specular 1 1 1 \
- specpow e
-
- #define RSMscale(x) scale (x) (x) (x)
-
- #define RSMsimplefbmtex() fbm 0 2 .1 2 6 -.2
- #define RSMsimpleskytex() sky 1 0.3 2 4 0.6 0.5
-
- #define RSMbluescreen() background 0.125 0.125 1.0
- #define RSMdaysky() background 0.539 0.746 1.000
-
- #define RSMchesspiece(row,col,sc) \
- translate \
- ((((col)-4)/8 - 1/16)*(sc)) \
- (((4-(row))/8 + 1/16)*(sc)) \
- 0
-
- #endif /* ifndef RSHF_MACROS */
-